<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib  prefix="s"  uri="/struts-tags"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


	<div style="background:#fafafa;padding:10px;width:450px;height:250px;">
	    <form id="ff" method="post" novalidate>
	       
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr height="30px;">
    <td width="50px;"><label for="name">药品名称:</label></td>
    <input type="hidden" id="cdid" name='cdid' vlaue='${cdid}'/>
    <input type="hidden" id="medid" name='medid' vlaue='${medid}'/>
    <td width="66%"><input  type="text" id="medname" name="medname"   value="${medname}"></input></td>
  </tr>
  <tr height="30px;">
    <td><label for="email">生产厂家:</label></td>
    <td><label id="factname">${factname}</label></td>
  </tr>
  <tr height="30px;">
    <td><label for="subject">单价:</label></td>
    <td><input   type="text" id="price" name="price" value="${price }"></input></td>
  </tr>
  <tr height="30px;">
    <td><label for="message">数量:</label></td>
    <td><input   type="text" id="qtycont" name="qtycont" value="${qtycont }"></input></td>
  </tr>
  <tr height="30px;">
    <td>&nbsp;</td>
    <td>
    <a href="javascript:void();" class="easyui-linkbutton" iconCls="icon-save" id='btnSaveMedinf'>提交</a>
    </td>
  </tr>
</table>

	    </form>
	</div> 	
<div id='win_select_med'></div>


<script type="text/javascript">
	$(function(){
		$("#medname").click(function(){
			$('#win_select_med').window({  
				title:'选择药品',
			    width:1000,  
			    height:500,  
			    maximizable:false,
			    collapsible:false,
			    minimizable:false,
			    modal:true
			});  
			$('#win_select_med').window('refresh','<%=basePath%>/contmaster_select_med.do?random='+Math.random());
		});
		
	});
</script>
